package net.jsoft.pms.entity.grouprelationship;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import net.jsoft.platform.security.entity.user.SysUser;

@Entity
@Table(name = "t_dzswj_grouprelationship")
public class GroupRelationship implements Serializable
{

    /**
     * 
     */
    private static final long serialVersionUID = 6295531303171805893L;

    private long id;

    private String name;

    private String fileName;

    private Date requirementDate;

    private String requirementResult;

    private boolean requirementFinished;

    private boolean edit;

    private String editResult;

    private String editPoint;

    private SysUser optUser;

    private Date confirmedDate;

    private SysUser confirmedUser;

    private String note;

    private String groupRelationshipID;

    private String fileStr;

    private Date dealDate;

    @Lob
    @Column(columnDefinition = "LONGTEXT")
    public String getFileStr()
    {
        return fileStr;
    }

    public void setFileStr(String fileStr)
    {
        this.fileStr = fileStr;
    }

    @Id
    @GeneratedValue
    public long getId()
    {
        return id;
    }

    public void setId(long id)
    {
        this.id = id;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getFileName()
    {
        return fileName;
    }

    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    public Date getRequirementDate()
    {
        return requirementDate;
    }

    public void setRequirementDate(Date requirementDate)
    {
        this.requirementDate = requirementDate;
    }

    public String getRequirementResult()
    {
        return requirementResult;
    }

    public void setRequirementResult(String requirementResult)
    {
        this.requirementResult = requirementResult;
    }

    public boolean isRequirementFinished()
    {
        return requirementFinished;
    }

    public void setRequirementFinished(boolean requirementFinished)
    {
        this.requirementFinished = requirementFinished;
    }

    public boolean isEdit()
    {
        return edit;
    }

    public void setEdit(boolean isEdit)
    {
        this.edit = isEdit;
    }

    public String getEditResult()
    {
        return editResult;
    }

    public void setEditResult(String editResult)
    {
        this.editResult = editResult;
    }

    public String getEditPoint()
    {
        return editPoint;
    }

    public void setEditPoint(String editPoint)
    {
        this.editPoint = editPoint;
    }

    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "optUser")
    public SysUser getOptUser()
    {
        return optUser;
    }

    public void setOptUser(SysUser optUser)
    {
        this.optUser = optUser;
    }

    public Date getConfirmedDate()
    {
        return confirmedDate;
    }

    public void setConfirmedDate(Date confirmedDate)
    {
        this.confirmedDate = confirmedDate;
    }

    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "confirmedUser")
    public SysUser getConfirmedUser()
    {
        return confirmedUser;
    }

    public void setConfirmedUser(SysUser confirmedUser)
    {
        this.confirmedUser = confirmedUser;
    }

    public String getNote()
    {
        return note;
    }

    public void setNote(String note)
    {
        this.note = note;
    }

    public String getGroupRelationshipID()
    {
        return groupRelationshipID;
    }

    public void setGroupRelationshipID(String groupRelationshipID)
    {
        this.groupRelationshipID = groupRelationshipID;
    }

    public Date getDealDate()
    {
        return dealDate;
    }

    public void setDealDate(Date dealDate)
    {
        this.dealDate = dealDate;
    }

}
